// components/navgation-bar/index.js
Component({
  options:{
    multipleSlots:true
  },
  /**
   * 组件的属性列表
   */
  properties: {
      title:{
        type:String,
        value:'默认标题'
      }
  },

  /**
   * 组件的初始数据
   */
  data: {
   statusBarHeight:getApp().globalData.statusBarHeight,
   navBarHeight: getApp().globalData.navBarHeight
  },
    lifetimes:{
      ready:function(){
        const info = wx.getSystemInfoSync()
        // console.log(info);
      }
    },
  /**
   * 组件的方法列表
   */
  methods: {
    handleLeftClick:function(){
      this.triggerEvent('click')
    }
  }
})
